/*
 *  Copyright (C) 2011 felixtheripper <felixtheripper_AT_gmail.com>
 *
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU General Public License
 *  as published by the Free Software Foundation; either version 2
 *  of the License, or (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

package org.myorg.ctm.etk.gui.swg.display.menuitem;

import java.awt.event.ActionListener;

/**
 *
 * @author felixtheripper
 *
 * email: felixtheripper_AT_gmail.com
 * ... please remove "_AT_" from the above string to get the right email address
 *
 */

abstract public class MimIcnJhAbs extends MimIcnAbs
{

    protected MimIcnJhAbs(String strText)
    {
		super(strText, (ActionListener) null);
        
        setEnabled(false);
    }
	
	protected MimIcnJhAbs(String strText, String[] strsNameIcon)
    {
        super(strText, (ActionListener) null, strsNameIcon);
        
        setEnabled(false);
    }

    abstract public void setEnabled(javax.help.HelpBroker hbr);

	/*
	 * trick:
	 * source: "TOC-appli", or ie "TOC-specific"
	 */
	protected void _setEnabled_(ActionListener alr)
	{
		if (alr == null)
			return;
		
		super.addActionListener(alr);
        
		setEnabled(true);
	}
    
	private static final long serialVersionUID = 1L;

}
